package org.example.fastproject.core.security;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @Author 王海舟
 * @Date 2023/1/18 14:08
 * @PackageName:org.example.fastproject.core.security
 * @ClassName: IgnoreUrls
 * @Description: security参数
 * @Version 1.0
 */
@Component
@Data
@ConfigurationProperties(prefix = "security")
public class SecurityProperties {
    private Token token;

    private Ignore ignore;

    @Data
    public static class Token{
        private String header = "Authorization";

        private String prefix = "bearer ";
    }

    @Data
    public static class Ignore{
        private boolean enable = true;

        private String[] urls = {};
    }
}
